import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: {}
  },
  getters: {

  },
  mutations: {
    getUser(state, val) {

      state.userInfo = val



    },
    userImg(state, val){
      console.log(val);
      // state.userInfo.head=val
    }

  },
  actions: {
  },
  modules: {
  }
})
